package com.dailyblue.java.spring.jwt.controller;

import com.dailyblue.java.spring.jwt.util.JsonResult;
import com.dailyblue.java.spring.jwt.util.ResultTool;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/emp")
public class EmpController {

    @GetMapping
    public JsonResult a() {
        return ResultTool.success("aa");
    }

    @PostMapping
    public JsonResult b() {
        return ResultTool.success("bb");
    }

    @PutMapping
    public JsonResult c() {
        return ResultTool.success("cc");
    }

    @PostMapping("/login")
    public JsonResult login() {
        return ResultTool.success();
    }
}
